package work2.phone;
/**
 *
 * 通话套餐类 特征：通话时长、短信条数、每月资费 行为: 显示所有套餐信息
 *
 */

public class PhonePlan {
    private int callTime;
    private int infoNum;
    private int monthFee;

    public int getCallTime() {
        return callTime;
    }

    public void setCallTime(int callTime) {
        this.callTime = callTime;
    }

    public int getInfoNum() {
        return infoNum;
    }

    public void setInfoNum(int infoNum) {
        this.infoNum = infoNum;
    }

    public int getMonthFee() {
        return monthFee;
    }

    public void setMonthFee(int monthFee) {
        this.monthFee = monthFee;
    }

    public void show(){
        System.out.println("通话时长:" + callTime + " 短信条数:" + infoNum + "  每月消费:" + monthFee);
    }
}
